package com.wjk.easy.db;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

public class UserBean extends LitePalSupport {
    @Column(unique = true, defaultValue = "unknown",nullable = false)
    private String username;
    @Column(nullable = false)
    private String password;
    private int id;

    public UserBean(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setId(int id){
        this.id = id;
    }

    public int getId(){
        return id;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
